package com.yinshan.zxing.analyze;

import androidx.annotation.Nullable;

import com.google.zxing.DecodeHintType;
import com.google.zxing.Reader;
import com.google.zxing.qrcode.QRCodeReader;
import com.yinshan.zxing.DecodeConfig;

import java.util.Map;


/**
 * @author limh
 */
public class QRCodeAnalyzer extends BarcodeFormatAnalyzer {

    public QRCodeAnalyzer() {
        this((com.yinshan.zxing.DecodeConfig)null);
    }

    public QRCodeAnalyzer(@Nullable Map<DecodeHintType, Object> hints){
        this(new com.yinshan.zxing.DecodeConfig().setHints(hints));
    }

    public QRCodeAnalyzer(@Nullable com.yinshan.zxing.DecodeConfig config) {
        super(config);
    }

    @Override
    public Reader createReader() {
        return new QRCodeReader();
    }

}
